#!/bin/bash

# 获取Conda的基础路径
CONDA_BASE=$(conda info --base)

# 初始化Conda环境
__conda_setup="$('$CONDA_BASE/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "$CONDA_BASE/etc/profile.d/conda.sh" ]; then
. "$CONDA_BASE/etc/profile.d/conda.sh"
else
export PATH="$CONDA_BASE/bin:$PATH"
fi
fi
unset __conda_setup

# 激活指定的Conda虚拟环境
conda activate opencompass
cd /nfs/opencompass/
# 执行命令
eval $*
